import { play } from '@feidao-factory/animation';
import { IAnimation, IChainAnimation, ICombineAnimation } from '@feidao-factory/animation/types';

/**
 * 执行动画
 * @param anim IAnimation | IChainAnimation | ICombineAnimation 动画对象
 * @param delay 延迟时长 可选项
 * @return 无
 * @see [api](https://feidao-edu.gitee.io/atom-api/modules/_browser_animation_paly_.html)
 * @example _play(anim , delay);
 */
export default function _play(anim: IAnimation | IChainAnimation | ICombineAnimation, delay?: number) {
	play(anim, delay);
}
